package ar.edu.unq.tpi.uis.tepe3.wicket.extensions;

import javax.swing.tree.TreeNode;

import org.apache.wicket.Component;
import org.apache.wicket.MarkupContainer;
import org.apache.wicket.extensions.markup.html.tree.table.ColumnLocation;
import org.apache.wicket.extensions.markup.html.tree.table.PropertyTreeColumn;

public class OnlyFolderPropertyTreeColumn extends PropertyTreeColumn {

	public OnlyFolderPropertyTreeColumn(ColumnLocation location, String header, String propertyExpression) {
		super(location, header, propertyExpression);
	}
	
	public Component newCell(MarkupContainer parent, String id, TreeNode node, int level)
	{
		return OnlyFolderTreeTable.newTreeCell(parent, id, node, level, new OnlyFolderTreeTable.IRenderNodeCallback()
		{
			private static final long serialVersionUID = 1L;

			public String renderNode(TreeNode node)
			{
				return OnlyFolderPropertyTreeColumn.this.renderNode(node);
			}
		}, getTreeTable());
	}
	


}
